package category

import (
	"github.com/gin-gonic/gin"
	"go-interview-forum/api/category"
)

func CategoryRouter(g *gin.Engine) {
	cate := g.Group("cate")

	cate.GET("/list", category.GetCategoryList)          // all cate list
	cate.GET("/list/any", category.GetAnyLevelCateList)  // any level cate list
	cate.GET("/list/search", category.GetCateByCateName) // search cate list by name
	cate.GET("/list/like", category.GetCateLikeCateName) // search cate list like name
}
